package com.thinkwide.data.servlet;

import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import java.util.Enumeration;
import java.util.HashMap;

public class MFServletConfig implements ServletConfig {

    private String servletName;
    private ServletContext servletContext;
    private HashMap<String, String> paramMap;

    public MFServletConfig() {
        paramMap = new HashMap<String, String>();
    }

    public String getServletName() {

        return servletName;

    }

    public ServletContext getServletContext() {
        return servletContext;

    }

    public String getInitParameter(String arg0) {
        return arg0;

    }

    public Enumeration getInitParameterNames() {

        return (Enumeration) paramMap.keySet();

    }

    public void setServletName(String servletName) {
        this.servletName = servletName;
    }

    public void setServletContext(ServletContext servletContext) {
        this.servletContext = servletContext;
    }

    public void setParamMap(HashMap<String, String> paramMap) {
        this.paramMap = paramMap;
    }

    public HashMap<String, String> getParamMap() {
        return paramMap;
    }

}
